import 'dart:convert';
/// chargingPileGains : "1414.70"
/// photovoltaicGains : "0"
/// essGains : "0"
/// totalGains : "1414.70"
/// storageCharge : null
/// storageDischarge : null
/// selfUseRate : null
/// selfSufficiencyRate : null

SiteOverviewModel siteOverviewModelFromJson(String str) => SiteOverviewModel.fromJson(json.decode(str));
String siteOverviewModelToJson(SiteOverviewModel data) => json.encode(data.toJson());
class SiteOverviewModel {
  SiteOverviewModel({
      String? chargingPileGains, 
      String? photovoltaicGains, 
      String? essGains, 
      String? totalGains, 
      dynamic storageCharge, 
      dynamic storageDischarge, 
      dynamic selfUseRate, 
      dynamic selfSufficiencyRate,}){
    _chargingPileGains = chargingPileGains;
    _photovoltaicGains = photovoltaicGains;
    _essGains = essGains;
    _totalGains = totalGains;
    _storageCharge = storageCharge;
    _storageDischarge = storageDischarge;
    _selfUseRate = selfUseRate;
    _selfSufficiencyRate = selfSufficiencyRate;
}

  SiteOverviewModel.fromJson(dynamic json) {
    _chargingPileGains = json['chargingPileGains'];
    _photovoltaicGains = json['photovoltaicGains'];
    _essGains = json['essGains'];
    _totalGains = json['totalGains'];
    _storageCharge = json['storageCharge'];
    _storageDischarge = json['storageDischarge'];
    _selfUseRate = json['selfUseRate'];
    _selfSufficiencyRate = json['selfSufficiencyRate'];
  }
  String? _chargingPileGains;
  String? _photovoltaicGains;
  String? _essGains;
  String? _totalGains;
  dynamic _storageCharge;
  dynamic _storageDischarge;
  dynamic _selfUseRate;
  dynamic _selfSufficiencyRate;
SiteOverviewModel copyWith({  String? chargingPileGains,
  String? photovoltaicGains,
  String? essGains,
  String? totalGains,
  dynamic storageCharge,
  dynamic storageDischarge,
  dynamic selfUseRate,
  dynamic selfSufficiencyRate,
}) => SiteOverviewModel(  chargingPileGains: chargingPileGains ?? _chargingPileGains,
  photovoltaicGains: photovoltaicGains ?? _photovoltaicGains,
  essGains: essGains ?? _essGains,
  totalGains: totalGains ?? _totalGains,
  storageCharge: storageCharge ?? _storageCharge,
  storageDischarge: storageDischarge ?? _storageDischarge,
  selfUseRate: selfUseRate ?? _selfUseRate,
  selfSufficiencyRate: selfSufficiencyRate ?? _selfSufficiencyRate,
);
  String? get chargingPileGains => _chargingPileGains;
  String? get photovoltaicGains => _photovoltaicGains;
  String? get essGains => _essGains;
  String? get totalGains => _totalGains;
  dynamic get storageCharge => _storageCharge;
  dynamic get storageDischarge => _storageDischarge;
  dynamic get selfUseRate => _selfUseRate;
  dynamic get selfSufficiencyRate => _selfSufficiencyRate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['chargingPileGains'] = _chargingPileGains;
    map['photovoltaicGains'] = _photovoltaicGains;
    map['essGains'] = _essGains;
    map['totalGains'] = _totalGains;
    map['storageCharge'] = _storageCharge;
    map['storageDischarge'] = _storageDischarge;
    map['selfUseRate'] = _selfUseRate;
    map['selfSufficiencyRate'] = _selfSufficiencyRate;
    return map;
  }

}